﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Spi;

public interface ITrussOrderService
{
    /// <summary>
    /// 创建桁架任务
    /// </summary>
    /// <param name="equip_id"></param>
    ///   <param name="targetName"></param>
    ///    <param name="status"></param>
    int CreateTask(long equip_id, string targetName);
    /// <summary>
    /// 执行桁架任务
    /// </summary>
    /// <param name="locId"></param>
    /// <param name="taskNo"></param>
    /// <returns></returns>
    int ExecuteTask(long locId, int taskNo);
    /// <summary>
    /// 完成桁架任务
    /// </summary>
    /// <param name="taskNo"></param>
    /// <returns></returns>
    int FinishTask(int taskNo);
    /// <summary>
    /// 获取当前桁架所有任务
    /// </summary>
    /// <param name="equipId"></param>
    /// <returns></returns>
    List<TaskCmdAndLocDto> GetTrussTaskAndCmdBeanByCmdEquipId(long equipId);
}
